package com.atguigu.mobileplayer4;

import android.app.Activity;
import android.os.Bundle;
import android.view.Gravity;
import android.widget.TextView;

import com.atguigu.mobileplayer4.uitls.LogUtil;

/**
 * 作者：杨光福 on 2016/5/23 10:19
 * 微信：yangguangfu520
 * QQ号：541433511
 * 作用：xxxx
 */
public class TestActviity extends Activity{
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        LogUtil.e("onCreate---");
        TextView textView = new TextView(this);
        textView.setText("我是测试页面");
        textView.setGravity(Gravity.CENTER);
        textView.setTextSize(50);
        setContentView(textView);
    }

    @Override
    protected void onStart() {
        super.onStart();
        LogUtil.e("onStart---");
    }

    @Override
    protected void onResume() {
        super.onResume();
        LogUtil.e("onResume---");
    }

    @Override
    protected void onRestart() {
        super.onRestart();
        LogUtil.e("onRestart---");
    }

    @Override
    protected void onPause() {
        super.onPause();
        LogUtil.e("onPause---");
    }

    @Override
    protected void onStop() {
        super.onStop();
        LogUtil.e("onStop---");
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        LogUtil.e("onDestroy---");
    }

}
